{/* LAYOUT模板 */}
	<layout name="layout"/>
{/* LAYOUT模板 */}
{/* import Js,Css */}
	<js href="__PUBLIC__/js/admin/listTable.js"/>
	<js href="__PUBLIC__/js/admin/js.util.js"/>
	<css href="__PUBLIC__/css/admin/common.css"/>
	<js href="__PUBLIC__/js/admin/js.selectzone.js"/>
	
	<css href="__PUBLIC__/css/jquery-ui.css" />
	<js href="__PUBLIC__/js/core/jquery-ui.1.10.4.js" />
	<js href="__PUBLIC__/js/core/plugins.js"/>
{/* import js,css */}
<!-- [position] -->
	<include file="Template:position"/>
<!-- [position] -->

<div class="form-div">
	<form action="javascript:searchPackage()" name="searchForm">
		<img src="__PUBLIC__/image/admin/icon_search.gif" width="26" height="22" border="0" alt="SEARCH" />
		超值礼包名称
		<input type="text" name="keyword" /> 
		<input type="submit" value="搜索"  />
	</form>
</div>

<form method="post" action="" name="listForm">
	<div class="list-div" id="listDiv">
		<table cellpadding="3" cellspacing="1" width="100%">
			<tr>
				<th><a href="javascript:listTable.sort('act_id'); ">编号</a>{$sort_act_id}</th>
				<th><a href="javascript:listTable.sort('package_name'); ">超值礼包名称</a>{$sort_package_name}</th>
				<th><a href="javascript:listTable.sort('start_time'); ">活动开始时间</a>{$sort_start_time}</th>
				<th><a href="javascript:listTable.sort('end_time'); ">活动结束时间</a>{$sort_end_time}</th>
				<th>操作</th>
			</tr>
			<volist name="package_list" id="package">
			<tr>
				<td align="center">{$package.act_id}</td>
				<td class="first-cell">
					<span onclick="listTable.edit(this, 'edit_package_name', {$package.act_id})">{$package.package_name}</span>
				</td>
				<td align="center">{$package.start_time}</td>
				<td align="center">{$package.end_time}</td>
				<td align="center">
					<a href="__URL__/mod_package?id={$package.act_id}" title="编辑">
						<img src="__PUBLIC__/image/admin/icon_edit.gif" border="0" height="16" width="16">
					</a>
					<a href="__URL__/remove_package?id={$package.act_id}" onclick="listTable.remove({$package.act_id},'{$Think.lang.drop_confirm}')" title="移除">
						<img src="__PUBLIC__/image/admin/icon_drop.gif" border="0" height="16" width="16">
					</a>
				</td>
			</tr>
			</volist>
		</table>
		<include file="Library:paginator"/>
	</div>
</form>
<!-- end article list -->

<script type="text/javascript" language="JavaScript">

  onload = function()
  {
      document.forms['searchForm'].elements['keyword'].focus();
      // 开始检查订单
      //startCheckOrder();
  }

  /**
   * 搜索礼包
   */
  function searchPackage()
  {
    var keyword = Utils.trim(document.forms['searchForm'].elements['keyword'].value);
    listTable.filter.keywords = keyword;
    listTable.filter.page = 1;
    listTable.loadList();
  }
</script>



